<?php
/**
 * Fiel name: Admin.php
 * User: Larry lifushui@qq.com
 * Date: 2015/9/11
 * Time: 15:00
 */

namespace App\Model;

use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;

class Admin extends Eloquent implements UserInterface, RemindableInterface
{
    use UserTrait, RemindableTrait;

    protected $table = 'admin';
    protected $hidden = ['password'];

    public static $rules = [
        'nickname' => 'required|alpha_num|min:2',
        'username' => 'required',
        'email' => 'required|email|unique:badmin',
        'password' => 'required|alpha+num|between:6,12|confirmed',
    ];


    public function getAdminList($uid, $numPage = 20)
    {
    }
}